import threading
from time import sleep
from appium import webdriver
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
from selenium.webdriver.common.by import By
import time,os
def thread_function1():
    print("我是函数1")
    t1=threading.Thread(target=thread_function1())
def thread_function2():
    print("我是函数2")
    t2=threading.Thread(target=thread_function2())
class Base():
    def __init__(self):
        os.system('adb root')
        cap={
            "platformName": "Android",
            "deviceName": "emulator-5554",
            "noReset": True,
            "appPackage": "com.xiachufang",
            "appActivity": "com.xiachufang.activity.home.HomeActivity"
        }
        self.driver=webdriver.Remote('http://127.0.0.1:4273/wd/hub',cap)
        self.driver.implicitly_wait(25)
        sleep(22)
    def jieping(self,loc):
        t=time.localtime(loc.time_stamp)
        sleep(2)
    def tuichu(self):
        self.driver.quit()